package map;

import player.Player;
import game.GameObject;


public class VMapReference {
	public int id;
	public VMap map;
	
	public int getId() {
		return id;
	}
	
	public void setId(int id)
	{
		this.id = id;
	}
	
	public void setMap(VMap map){
		this.map = map;
	}
	
	public void removeGameObject(GameObject player,boolean notify){
		if(map==null)
			throw new IllegalStateException();
		map.removeGameObject(player,notify);
	}
	
	public void playerLoadingFinished(Player player){
		if(map==null)
			throw new IllegalStateException();
		map.playerLoadingFinished(player);
	}
	
}
